package com.myblog.model.po;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author 
 * @since 2022-09-05
 */
@Getter
@Setter
@TableName("biz_article")
@ApiModel(value = "Article对象", description = "")
public class Article implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("文章标题")
    private String title;

    @ApiModelProperty("用户ID")
    private String userId;

    @ApiModelProperty("作者")
    private String author;

    @ApiModelProperty("文章封面图片")
    private String coverImage;

    @ApiModelProperty("文章专属二维码地址")
    private String qrcodePath;

    private Boolean isMarkdown;

    @ApiModelProperty("文章内容")
    private String content;

    @ApiModelProperty("markdown版的文章内容")
    private String contentMd;

    @ApiModelProperty("是否置顶")
    private Boolean top;

    @ApiModelProperty("类型")
    private Integer categoryId;

    @ApiModelProperty("状态")
    private Boolean status;

    @ApiModelProperty("是否推荐")
    private Boolean recommended;

    @ApiModelProperty("是否轮播")
    private Boolean slider;

    @ApiModelProperty("轮播图地址")
    private String sliderImg;

    @ApiModelProperty("是否原创")
    private Boolean original;

    @ApiModelProperty("文章简介，最多200字")
    private String description;

    @ApiModelProperty("文章关键字，优化搜索")
    private String keywords;

    @ApiModelProperty("是否开启评论")
    private Boolean comment;

    @ApiModelProperty("添加时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty("更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;


}
